package org.dromara.business.domain.vo;

import org.dromara.business.domain.UserCoinLog;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.mybatis.core.vo.BaseVo;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 用户硬币变动记录视图对象 t_user_coin_log
 *
 * @author Hao Tong Xue
 * @date 2025-04-03
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = UserCoinLog.class)
public class UserCoinLogVo extends BaseVo {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 记录 ID
     */
    @ExcelProperty(value = "记录 ID")
    private Long id;

    /**
     * 用户 ID
     */
    @ExcelProperty(value = "用户 ID")
    private Long userId;

    /**
     * 硬币变动数额
     */
    @ExcelProperty(value = "硬币变动数额")
    private Integer changeAmount;

    /**
     * 变动类型：0-登录奖励, 1-消费奖励, 2-系统赠送
     */
    @ExcelProperty(value = "变动类型：0-登录奖励, 1-消费奖励, 2-系统赠送", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "coin_change_type")
    private Integer changeType;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 用户名称
     */
    private String userName;

}
